#ifndef ROSBAG_H
#define ROSBAG_H
#include <ros/ros.h>
#include <nav_msgs/Path.h>
#include <rosbag/bag.h>
#include <sensor_msgs/PointCloud2.h>

class RosBagSaver
{
public:
    RosBagSaver();
    static bool  wirtePath(const std::string& bag_path,const std::vector<nav_msgs::Path>& paths);
    static bool  readPath(const std::string& bag_path, std::vector<nav_msgs::Path>& paths);
    static bool writePoint2(const std::string fileName,  sensor_msgs::PointCloud2& msg);
    static bool  readPoint2(const std::string& fileName, sensor_msgs::PointCloud2& msg);

};

#endif // ROSBAG_H
